class AddCategoryIdToTask < ActiveRecord::Migration
  def self.up
    remove_column :tasks, :category # remove oops
    add_column :tasks, :category_id, :integer, :default => nil, :null => true
  end

  def self.down
    remove_column :tasks, :category_id # remove oops
  end
end
